package com.example.shushiyunsst.fragment.main.wallet.bean

import com.example.shushiyunsst.R
import com.example.wallet.global.AppGlobals
import java.io.Serializable

data class WalletHeadBean(
    val usd_value: Double?,
    val cny_value: Double?,
    val tokenType:String?
): Serializable {
    fun getUSDString():String{
        val wallet_sst = AppGlobals.getApplication().getString(R.string.wallet_sst)
        return "${usd_value}\t$wallet_sst"
    }
    fun getCNYString():String{
        val wallet_cny = AppGlobals.getApplication().getString(R.string.wallet_cny)
        return "${usd_value}\t$wallet_cny"
    }
}